import {createApp} from 'vue';
import App from './App.vue';
import router from './router';

import {createPinia} from 'pinia'

import ElementPlus from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'; // 引入中文语言包
import 'element-plus/dist/index.css'
import './style.css'

const pinia = createPinia()
const app = createApp(App)

const iconFont = document.createElement('script');
iconFont.src = '//at.alicdn.com/t/font_8d5l8fzk5b87iudi.js';
document.head.appendChild(iconFont);

app.use(ElementPlus, {
    locale: zhCn, // 设置全局语言为中文
});
app.config.warnHandler = () => {
};
app.use(pinia)
app.use(router)
app.mount('#app')
